/* Product Area Main Container */
.ff-product-area {
    padding: 30px 0;
    background-color: #f8f9fa;
}

/* Product Box Container */
.ff-product-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 35px;
}

/* Section Header */
.ff-section-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.ff-section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.ff-view-all {
    text-align: right;
}

.ff-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #e94560;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.2);
}

.ff-view-all-btn:hover {
    background: #d63d57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.ff-view-all-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ff-view-all-btn:hover i {
    transform: translateX(3px);
}

/* Responsive styles */
@media (max-width: 576px) {
    .ff-section-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ff-view-all {
        text-align: left;
    }
    
    .ff-view-all-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

.ff-category-title {
    font-size: 25px;
    color: #333;
    margin: 0;
    font-weight: 600;
    padding-bottom: 10px;
    text-transform: capitalize;
}

/* Product Grid */
.ff-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

/* Product Column */
.ff-product-column {
    width: 100%;
}

/* Product Card */
.ff-product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.ff-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Product Image Container */
.ff-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.ff-product-gallery {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.ff-product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    transition: transform 0.3s ease;
}

.ff-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    cursor: pointer;
    text-decoration: none;
    pointer-events: none; /* Prevents the icon from receiving hover events */
}

.ff-product-gallery:hover .ff-zoom-icon {
    opacity: 1;
}

.ff-zoom-icon i {
    color: #333;
    font-size: 18px;
    pointer-events: none; /* Prevents the icon from receiving hover events */
}

.ff-product-gallery:hover .ff-product-img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Fancybox Navigation Customization */
.fancybox-navigation .fancybox-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.fancybox-navigation .fancybox-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.fancybox-navigation .fancybox-button--arrow_left {
    left: 20px;
}

.fancybox-navigation .fancybox-button--arrow_right {
    right: 20px;
}

.fancybox-navigation .fancybox-button svg path {
    fill: #333;
}

/* Features Section Styles */
.ff-features-section {
    padding: 40px 0;
    background: #fff;
}

.ff-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ff-feature-item {
    padding: 15px;
}

.ff-feature-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ff-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ff-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ff-feature-card:hover::before {
    opacity: 1;
}

.ff-feature-icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    padding: 12px;
    transition: all 0.3s ease;
}

.ff-feature-card:hover .ff-feature-icon {
    transform: scale(1.1);
    background: #e8f5e9;
}

.ff-feature-icon img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.ff-feature-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ff-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.ff-feature-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Optimization */
@media (max-width: 991px) {
    .ff-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ff-feature-card {
        padding: 20px;
    }
    
    .ff-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .ff-feature-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .ff-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ff-features-section {
        padding: 40px 0;
    }
    
    .ff-feature-item {
        padding: 10px;
    }
}

/* Fancybox Mobile Optimization */
@media (max-width: 768px) {
    .fancybox-navigation .fancybox-button {
        width: 40px;
        height: 40px;
    }

    .fancybox-navigation .fancybox-button--arrow_left {
        left: 10px;
    }

    .fancybox-navigation .fancybox-button--arrow_right {
        right: 10px;
    }
}

/* Fancybox Customization */
.fancybox-container {
    z-index: 999999 !important;
}

.fancybox-caption {
    text-align: center;
    font-size: 16px;
    padding: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}

.fancybox-navigation .fancybox-button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    margin: 0 10px;
}

.fancybox-navigation .fancybox-button:hover {
    background: rgba(255, 255, 255, 1);
}

.fancybox-button--arrow_left {
    left: 10px !important;
}

.fancybox-button--arrow_right {
    right: 10px !important;
}

/* Categories Section Styles */
.ff-categories-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.ff-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4757, transparent);
}

.ff-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
    padding: 10px;
}

/* Add a title for the categories section */
.ff-categories-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.ff-categories-title h2 {
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ff-category-item {
    position: relative;
}

.ff-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ff-category-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.ff-category-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.ff-category-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-category-content {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: rgb(252 252 253);
    backdrop-filter: blur(2px);
}

.ff-category-name {
    margin: 0;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ff-category-card:hover .ff-category-name {
    transform: scale(1);
}

.ff-category-name a {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
}

.ff-category-name a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.ff-category-card:hover .ff-category-name a::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 991px) {
    .ff-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .ff-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 40px;
    }
    
    .ff-category-content {
        padding: 20px;
    }
    
    .ff-category-name {
        font-size: 13px;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .ff-nav-prev,
    .ff-nav-next {
        width: 35px;
        height: 35px;
    }
    
    .ff-zoom-icon {
        width: 40px;
        height: 40px;
    }
}

/* Discount Badge */
.ff-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.2);
}

/* Product Details */
.ff-product-details {
    padding: 15px;
}

.ff-product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.ff-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ff-product-title a:hover {
    color: #ff4757;
}

/* Price Container */
.ff-stock-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ff-stock-status.in-stock {
    background-color: #4caf50;
    color: white;
}

.ff-stock-status.out-of-stock {
    background-color: #f44336;
    color: white;
}

.ff-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ff-price-current {
    font-size: 18px;
    font-weight: 600;
    color: #2ecc71;
}

.ff-price-original {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

/* Savings Info */
.ff-savings {
    font-size: 13px;
    color: #666;
}

.ff-amount-saved {
    color: #e74c3c;
    font-weight: 600;
}

/* Quantity Input */
.ff-quantity-input {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ff-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .ff-product-details {
        padding: 12px;
    }
    
    .ff-product-title {
        font-size: 14px;
    }
    
    .ff-price-current {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ff-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 35px;
    }
    
    .ff-category-title {
        font-size: 20px;
    }
    
    .ff-discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}